package com.bbird.od.finance.service.models;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.bbird.od.finance.service.models.type.BankType;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author ziyang Kuang
 * @date 2020/11/16
 * @describe
 */

@Data
public abstract class BankFlow {
    // 与ERP流水唯一映射号
    @ExcelIgnore
    private String homeOrderNumber;
    // 实收金额
    @ExcelIgnore
    private BigDecimal actualAmount;
    // 备注
    @ExcelProperty("备注")
    private String remark;
    // 银行类型
    @ExcelIgnore
    private BankType bankType;

    /**
     * 获取实收金额
     *
     * @return
     */
    public abstract BigDecimal getActualAmount();

    /**
     * 获取真正的ERP订单号
     */
    public abstract String getHomeOrderNumber();
}
